package com.zmj.service;

import com.zmj.entity.SignUp;
import com.zmj.mapper.SignUpMapper;
import com.zmj.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SignUpService {

    @Autowired
    SignUpMapper signUpMapper;

    public boolean createEn(SignUp signUp){
        boolean res = signUpMapper.createEn(signUp)>0;
        if (res){
            return true;
        }else {
            return false;
        }
    }

    public List<SignUp> getUpInfo(){
        List<SignUp> list = signUpMapper.getUpInfo();
        if (list != null){
            return list;
        }else {
            return null;
        }
    }

}
